package models;

import play.*;
import play.data.validation.Email;
import play.data.validation.MaxSize;
import play.data.validation.Required;
import play.db.jpa.*;

import javax.persistence.*;

import java.util.*;

@Entity
public class Pessoa extends Model
 {
	
	@Required
	@MaxSize(195)
	public String nomeCompleto;
	@Required
	@MaxSize(190)
	public String nome;
	@Required
	public String senha;
	@Required
	@Email
	@MaxSize(200)
	public String email;
	@Required
	@MaxSize(20)
	public String cpf;
	public Pessoa( String nomeCompleto, String nome, String senha, String email, String cpf) {
		super();
		
		this.nomeCompleto = nomeCompleto;
		this.nome = nome;
		this.senha = senha;
		this.email = email;
		this.cpf = cpf;
	}
}
